package com.victor.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.victor.entity.ShopUserLogin;

@Mapper
public interface ShopUserLoginDao {

	@Select({ "select * from shop_user_login where account=#{account} " })
	ShopUserLogin shopuserlogin(@Param("account") String account);

	@Select({ "select * from shop_user_login where shopid=#{shopid}" })
	ShopUserLogin shopuserloginByShopid(@Param("shopid") String shopid);

	@Update({ "update shop_user_login set password=#{newpassword} where shopid=#{shopid}" })
	int updateShopUserPassword(@Param("shopid") String shopid, @Param("newpassword") String newpassword);
}
